package IO流;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class IO流_7_缓冲字节流_输出 {
    public static void main(String[] args) {
        IO流_7_缓冲字节流_输出 dx = new IO流_7_缓冲字节流_输出();
        dx.test();
    }
    public void test(){
        try {
            FileOutputStream out  =  new FileOutputStream("F:\\java_IO\\a\\io3.txt");

            BufferedOutputStream bo = new BufferedOutputStream(out);

            String x =  "测试 缓冲字节流_输出";

            bo.write(x.getBytes());//换成 比特数组  放在内存

            bo.flush();//刷在硬盘上

            bo.close();
            out.close();





        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
